﻿USE [GestionePolveri]
GO

/****** Object:  Table [GP].[ColumnsConfiguration]    Script Date: 10/21/2012 22:53:05 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [GP].[ColumnsConfiguration](
	[IDColumn] [smallint] IDENTITY(1,1) NOT NULL,
	[ColumnName] [varchar](50) NOT NULL,
	[IsVisible] [bit] NOT NULL,
	[IDForm] [smallint] NOT NULL,
	[SerializedObject] [varchar](max) NOT NULL,
 CONSTRAINT [PK_ColumnsConfiguration] PRIMARY KEY CLUSTERED 
(
	[IDColumn] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [GP].[ColumnsConfiguration]  WITH CHECK ADD  CONSTRAINT [FK_ColumnsConfiguration_FormsList] FOREIGN KEY([IDForm])
REFERENCES [GP].[FormsList] ([IDForm])
GO

ALTER TABLE [GP].[ColumnsConfiguration] CHECK CONSTRAINT [FK_ColumnsConfiguration_FormsList]
GO



